package com.dm.cloud.auth.common.mode;

import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Set;

@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description ="角色权限保存模型")
public class AuthUserPermissionSaveModel {

    @Schema(description = "角色ID")
    @NotNull
    private String roleId;

    @Schema(description = "权限标识(code)")
    private Set<String> permissionCodes;

}
